package com.gareve.RainScene.screens;

import com.badlogic.gdx.Screen;
import com.gareve.RainScene.models.GameWorld;
import com.gareve.RainScene.views.GameRenderer;

public class MainScreen implements Screen{
	
	private GameWorld gameWorld;
	private GameRenderer gameRenderer;
	
	@Override
	public void render(float delta) {
		gameWorld.nextStep(delta);
		gameRenderer.render();
	}

	@Override
	public void resize(int width, int height) {
		gameRenderer.resize(width, height);
	}

	@Override
	public void show() {
		gameWorld = new GameWorld();
		gameRenderer = new GameRenderer();
		
		gameRenderer.setGameWorld(gameWorld);
	}

	@Override
	public void hide() {
	}

	@Override
	public void pause() {
	}

	@Override
	public void resume() {
	}

	@Override
	public void dispose() {
	}

}
